import request from '@/utils/request'

// 查询家访记录列表
export function listJf(query) {
  return request({
    url: '/event/jf/list',
    method: 'get',
    params: query
  })
}

export function queryJf(query) {
  return request({
    url: '/event/jf/query',
    method: 'post',
    data: query
  })
}

// 查询家访记录详细
export function getJf(jfId) {
  return request({
    url: '/event/jf/' + jfId,
    method: 'get'
  })
}

// 新增家访记录
export function addJf(data) {
  return request({
    url: '/event/jf',
    method: 'post',
    data: data
  })
}

// 修改家访记录
export function updateJf(data) {
  return request({
    url: '/event/jf',
    method: 'put',
    data: data
  })
}

// 删除家访记录
export function delJf(jfId) {
  return request({
    url: '/event/jf/' + jfId,
    method: 'delete'
  })
}
